package org.javacore.base.objects;

/**
 * @author: fanliu
 * @description
 * @date: 2025/3/28 17:11
 */
public class OClassTest1 {

    static class A {
        public void m(A a) { System.out.println("A(A)"); }
        public void m(B b) { System.out.println("A(B)"); }
    }
    static class B extends A {
        @Override
        public void m(A a) { System.out.println("B(A)"); }
        public void m1(B b) { System.out.println("B(B)"); }
    }


    public static void main(String[] args) {
        A a = new B();
        B b = new B();
        a.m(a); // 输出什么？
        a.m(b);
    }

}
